Skip to content

Formalize vaporview api in npm package#168

Open
AndrewNolte wants to merge 1 commit intoLramseyer:mainfrom
AndrewNolte:AndrewNolte/stack/10
Open

Formalize vaporview api in npm package#168
AndrewNolte wants to merge 1 commit intoLramseyer:mainfrom
AndrewNolte:AndrewNolte/stack/10

Conversation

@AndrewNolte
Copy link
Copy Markdown
Contributor

@AndrewNolte AndrewNolte commented Mar 27, 2026

@AndrewNolte AndrewNolte force-pushed the AndrewNolte/stack/10 branch from 876632e to 81eb639 Compare March 27, 2026 18:38
@AndrewNolte AndrewNolte marked this pull request as draft March 27, 2026 18:46
@AndrewNolte AndrewNolte marked this pull request as ready for review March 27, 2026 18:47
@AndrewNolte AndrewNolte marked this pull request as draft March 27, 2026 18:48
@AndrewNolte AndrewNolte force-pushed the AndrewNolte/stack/10 branch from 81eb639 to 83576cc Compare March 27, 2026 18:48
@AndrewNolte AndrewNolte marked this pull request as ready for review March 27, 2026 18:48
@AndrewNolte AndrewNolte marked this pull request as draft March 27, 2026 18:57
@AndrewNolte AndrewNolte force-pushed the AndrewNolte/stack/10 branch from 83576cc to 9f6265e Compare March 27, 2026 18:57
@AndrewNolte AndrewNolte marked this pull request as ready for review March 27, 2026 18:57
@AndrewNolte AndrewNolte marked this pull request as draft March 27, 2026 20:19
@AndrewNolte AndrewNolte force-pushed the AndrewNolte/stack/10 branch from 9f6265e to 5011e18 Compare March 27, 2026 20:19
@AndrewNolte AndrewNolte marked this pull request as ready for review March 27, 2026 20:19
@AndrewNolte AndrewNolte marked this pull request as draft March 27, 2026 21:50
@AndrewNolte AndrewNolte force-pushed the AndrewNolte/stack/10 branch 2 times, most recently from aa19ff5 to 4decf83 Compare March 27, 2026 21:50
@AndrewNolte AndrewNolte marked this pull request as ready for review March 27, 2026 21:50
return {
const api: VaporviewApi = {
// Events
onDidSetMarker: markerSetEvent,
Copy link
Copy Markdown
Owner

@Lramseyer Lramseyer Mar 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this type need to be changed to "MarkerSetEvent"?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a function, not a type. It is quite confusing that they are almost the same name.

export type SignalGroupContextMenuEvent = SignalGroupContext & DefaultWebviewContext;
export type NetlistVariableContextMenuEvent = NetlistVariableContext & DefaultWebviewContext;
export type CustomVariableContextMenuEvent = CustomVariableContext & DefaultWebviewContext;
export type RowItemContextMenuEvent = NetlistVariableContext | CustomVariableContext | SignalGroupContext | SignalSeparatorContext; No newline at end of file
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RowItemContextMenuEvent was deleted

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually most of these are unused, including this one. I think they do have a place somewhere though.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like since these are used for users adding context buttons. I think they should be used internally too though

@AndrewNolte AndrewNolte marked this pull request as draft March 31, 2026 14:07
@AndrewNolte AndrewNolte force-pushed the AndrewNolte/stack/10 branch from 4decf83 to 7adead8 Compare March 31, 2026 14:07
@AndrewNolte AndrewNolte marked this pull request as ready for review March 31, 2026 14:07
stack-info: PR: Lramseyer#168, branch: AndrewNolte/stack/10
@AndrewNolte AndrewNolte marked this pull request as draft March 31, 2026 14:35
@AndrewNolte AndrewNolte force-pushed the AndrewNolte/stack/10 branch from 7adead8 to d23f997 Compare March 31, 2026 14:35
@AndrewNolte AndrewNolte marked this pull request as ready for review March 31, 2026 14:36
@AndrewNolte AndrewNolte marked this pull request as draft March 31, 2026 15:02
@AndrewNolte AndrewNolte marked this pull request as ready for review March 31, 2026 15:03
@AndrewNolte AndrewNolte marked this pull request as draft April 1, 2026 14:40
@AndrewNolte AndrewNolte marked this pull request as ready for review April 1, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants